package com.ruoyi.common.domain.business;

    import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 订单产品关联对象 order_product
 *
 * @author Song
 * @date 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("order_product")
@ApiModel(description = "订单产品关联")
public class OrderProduct extends BaseEntity implements Serializable{
private static final long serialVersionUID = 1L;

    /** 主键id */
        @TableId(value = "id" ,type = IdType.AUTO)
        @ApiModelProperty(name = "${comment}")
        private Long id;
    /** 订单id */
            @Excel(name = "订单id")
        @ApiModelProperty(name = "订单id")
        private Long orderId;
    /** 规格id */
            @Excel(name = "规格id")
        @ApiModelProperty(name = "规格id")
        private Long skuId;
    /** 数量 */
            @Excel(name = "数量")
        @ApiModelProperty(name = "数量")
        private Long num;
    /** 总金额 */
            @Excel(name = "总金额")
        @ApiModelProperty(name = "总金额")
        private BigDecimal totalPrice;
    /** 逻辑删除(0表示未删除，1表示软删除) */
        @TableLogic
        @ApiModelProperty(name = "逻辑删除(0表示未删除，1表示软删除)")
        private Long isDelete;
}
